package cn.changeforyou.generator.core;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author zhyu
 * @date 2021/1/30 14:43
 */
public class GeneratorContext {
    
    private Map<String, String> terminalData;

    
    
    public GeneratorContext() {
        init();
    }

    private void init() {
        this.terminalData = new ConcurrentHashMap<>(16);
    }
    
    public String getValue(String key) {
        return terminalData.get(key);
    }
    
    public void setValue(String key, String data) {
        terminalData.put(key, data);
    }
}
